package com.xhsj.user.sms.process.dto;

import com.xhsj.user.sms.process.entity.TbPurchaseProcessOpinionFile;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author suxiaolin
 * @date 2020/7/14 9:25
 */
@Data
public class PurchaseOrderAuditDto {
    @NotBlank(message = "采购任务id不能为空")
    private String purchaseTaskId;
    //业务id
    @NotBlank(message = "dataId业务id不能为空")
    private String dataId;
    //流程任务id
    @NotBlank(message = "流程任务id不能为空")
    private String processTaskId;
    //状态
    @NotNull(message = "status不能为空")
    private Integer status;
    // 节点id
    @NotBlank(message = "nodeId采购申请节点id不能为空")
    private String nodeId;

    // 审核意见
    private String  opinionText;

    // 归口部门id
    private Integer relevantDeptId;
    /**
     * 意见附件
     */
    @Valid
    private List<TbPurchaseProcessOpinionFile> tbPurchaseProcessOpinionFile;

    // 流程申请用户id
    @NotBlank(message = "proposerId流程申请用户id不能为空")
    private String proposerId;
    // 登录用户id
    @NotBlank(message = "createBy登录用户id不能为空")
    private String createBy;
    // 提交状态 1 保存 2 提交
    @NotNull(message = "submitStatus提交状态不能为空")
    private Integer submitStatus;

    private    Object userId;

    private    Object roleIds;

    private    Object deptIds;

    private String auditStatus;

    private String processType;
}
